<?php
/**
 * Create by wenyi
 * E-mail: wesley_prc@163.com
 * Description: data-collect-api
 * Date: 2024/3/3 14:14
 * Update: 2024/3/3 14:14
 * Remarks:公共基础业务类
 */

namespace app\api\business;
use think\Exception;

class CommonBus extends BaseBus
{
    private static $name = 'business.CommonBus1';

    /**
     * @param array $data
     * @return string
     */
    public static function idTwodimensionArrayString(array $data)
    {
        $list = [];
        foreach ($data as $val){
            array_push($list,$val['id']);
        }
        if($list){
            return implode(",",$list);
        }else{
            return '';
        }
    }
}